﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wekit.Core.Security
{
    public interface IEncryptor
    {
        /// <summary>
        /// 对字符串进行加密处理
        /// </summary>
        /// <param name="plainText">明文</param>
        /// <returns>加密后文字</returns>
        string Encrypt(string plainText);

        /// <summary>
        /// 对加密字符串进行解密操作
        /// </summary>
        /// <param name="encryptedText">加密字符</param>
        /// <returns>明文</returns>
        string Decrypt(string encryptedText);
        
        /// <summary>
        /// 进行加密的密钥设计
        /// </summary>
        string EncryptionKey { get; set; }
    }
}
